public class Demo1 {
    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            while (true) {
                System.out.println("t1线程");
            }
        });

        Thread t2 = new Thread(() -> {
            while (true) {
                System.out.println("t2线程");
            }
        });
        t1.start();
        t2.start();

        while (true) {
            System.out.println("hello main");
        }
    }
}
